package com.javasm.adminapi.module.priceadjust.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 商品管理-价格调整(GgPriceAdjust)表实体类
 *
 * @author makejava
 * @since 2025-10-16 20:52:04
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GgPriceAdjust extends Model<GgPriceAdjust> {


    @TableId(type = IdType.AUTO)
    private Integer id;

    private String applyUser;

    private String goodsId;

    private String adjustWay;

    private Double percent;

    private Double adjustMarketPrice;

    private Double adjustShoppingPrice;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
//调价原因
    private String reason;
//备注
    private String remark;

    private Date createTime;

    private Date updateTime;

    private String processStatus;

    //用于接收商品名称
    @TableField(exist = false)
    private String gname;

    //用于接收原商场价格
    @TableField(exist = false)
    private Double oldShopPrice;

    //用于接收原市场价格
    @TableField(exist = false)
    private Double oldMarketPrice;

    //用于接收库存（不是最低库存）
    @TableField(exist = false)
    private Long stock;

}
